package com.syf.kit.soa.config;


import com.syf.kit.soa.SOARegionDocument;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties(SOARegionClientConfiguration.class)
public class SOARegionAutoConfig {

    @Bean(name="saoRegionDoc")
    SOARegionDocument createSOARegionDocument(SOARegionClientConfiguration configuration){
        return new SOARegionDocument(configuration);
    }
}
